<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表格</title>
</head>
<body>

    <table border="1" width="600px">
        <caption>表格主题</caption>
        <thead>
            <tr>
                <th>编号</th>
                <th>姓名</th>
                <th>年龄</th>
            </tr>
        </thead>
        <tbody>
            <!-- table row -->
            <tr>
                <!-- table data, 单元格 -->
                <td>1-1</td>
                <td>1-2</td>
                <td>1-3</td>
            </tr>

            <tr>
                <td>2-1</td>
                <td>2-2</td>
                <td>2-3</td>
            </tr>
        </tbody>
        <tfoot>
            <tr>
                <td>f1</td>
                <td>f2</td>
                <td>f3</td>
            </tr>
        </tfoot>
    </table>

    <hr >

    <table border="1" width="600px">
        <caption>表格主题</caption>
        <tr>
            <th>编号</th>
            <th>姓名</th>
            <th>年龄</th>
        </tr>
        <!-- table row -->
        <tr>
            <!-- table data, 单元格 -->
            <td>1-1</td>
            <td>1-2</td>
            <td>1-3</td>
        </tr>

        <tr>
            <td>2-1</td>
            <td>2-2</td>
            <td>2-3</td>
        </tr>
        <tr>
            <td>f1</td>
            <td>f2</td>
            <td>f3</td>
        </tr>
    </table>

    <hr >

    <table border="1" width="600px" cellpadding="0" cellspacing="0">
        <caption>表格主题</caption>
        <tr>
            <th>编号</th>
            <th>姓名</th>
            <th>年龄</th>
            <th>性别</th>
        </tr>
        <!-- table row -->
        <tr>
            <!-- table data, 单元格 -->
            <td>1-1-1-1</td>
            <td colspan="2" rowspan="2">1-2</td>
            <td>1-4</td>
        </tr>

        <tr>
            <td rowspan="2" >2-1</td>
            <td>2-4</td>
        </tr>
        <tr>
            <td>3-2</td>
            <td>3-3</td>
            <td>3-4</td>
        </tr>
        <tr>
            <!-- 在起始单元格写 colspan  -->
            <td colspan="4">f1</td>
        </tr>
    </table>
    
</body>
</html>